home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr26
/
blrmu13.zip
/
REDWHT.ASM
< prev
next >
Wrap
Assembly Source File
|
1993-06-01
|
2KB
|
65 lines
page ,132
title redwht ( red bak, brdr - white crsr ) 04/13/91 - 01:15 pm
;
code segment para public 'code'
;
org 256
;
assume cs:code,ds:code
;
redwht proc far
;
;*------------------------
;* set border color
;*------------------------
sbc:
mov ah,11 ; set color palette fct
mov bh,0 ; text mode
mov bl,7 ; border = wht
int 16 ; video int
;*------------------------
;* set cursor position
;*------------------------
scp:
mov ah,2 ; set cursor position fct
mov bh,0 ; page number 0
mov dh,0 ; row 0
mov dl,0 ; col 0
int 16
;*---------------------------------
;* write character and attribute
;*---------------------------------
wcaa:
mov ah,9 ; write char and attr fct
mov al,32 ; char = space
mov bh,0 ; page number 0
mov bl,79 ; x'4f' ; attr = red back, white crsr
mov cx,2000 ; 25 * 80 = full screen
int 16
;
exit: mov al,0 ; return code = 0
mov ah,76 ; terminate with ret code fct
int 33
;
redwht endp
;
code ends
;
end redwht
;
;---------------------------------------
; Color Chart
;---------------------------------------
;
; Black = 00 Light Black = 08
; Blue = 01 Light Blue = 09
; Green = 02 Light Green = 10
; Cyan = 03 Light Cyan = 11
; Red = 04 Light Red = 12
; Magenta = 05 Light Magenta = 13
; Brown = 06 Light Brown = 14 ( Yellow )
; White = 07 Light White = 15
;
;----------------------------------------
;